﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FaultSymptom.aspx.cs" Inherits="CRM.Web.VehicleManage.FaultSymptom" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <base target="_self"/>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/pop.css" %>" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js" defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" defer="defer"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/TreeView.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js" defer="defer"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript" defer="defer">
        $(document).ready(function() {
            $('.row').bind("dblclick", function() {
                $(this).find("a[id$='lbtnSelected']").click();
            }).attr("style", "cursor:hand; cursor:pointer;");
            $('.row2').bind("dblclick", function() {
                $(this).find("a[id$='lbtnSelected']").click();
            }).attr("style", "cursor:hand; cursor:pointer;");

        });
        function setValue(failureParts, failurePartsCode, symptom, symptomCode, fullSymptom) {
            var win;
            if (window.opener != null) {
                win = window.opener;
            }
            else if (window.dialogArguments != null) {
                win = window.dialogArguments;
            }
            win.SetFailureInfo(failureParts, failurePartsCode, symptom, symptomCode, fullSymptom);
            closeSelf();
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" >
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="故障现象信息查询" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMainPop" >
    <div style="float: left; width: 40%; ">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:TreeView ID="tvFaultSymptom" runat="server" ShowLines="True" Width="100%" 
                    onselectednodechanged="tvFaultSymptom_SelectedNodeChanged"  ></asp:TreeView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div style="float: left;  width: 59%; margin-left: 3px; ">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <div style="width: 100%">
                    <div class="listdiv">
                        <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="true" 
                            AllowSorting="true" PageSize="10"  SortExpressionValue="AUTOID">
                            <Columns>
			                <asp:BoundField DataField="AUTOID" HeaderText="自增编号"  SortExpression="AUTOID"   Visible="false" />
			                <asp:BoundField DataField="ID" HeaderText="ID"  SortExpression="ID"  Visible="false" />
			                <asp:BoundField DataField="PARENTCODE" HeaderText="上级编码"  SortExpression="PARENTCODE" />
			                <asp:BoundField DataField="PARENTID" HeaderText="上级名称"  SortExpression="PARENTID" />
			                <asp:BoundField DataField="CODE" HeaderText="编号"  SortExpression="CODE" />
			                <asp:BoundField DataField="NAMECN" HeaderText="中文名称"  SortExpression="NAMECN" />
			                <asp:BoundField DataField="NAMEEN" HeaderText="英文名称"  SortExpression="NAMEEN"  Visible="false" />
			                <asp:BoundField DataField="EFFECTDATE" HeaderText="生效日期"  SortExpression="EFFECTDATE"  Visible="false" />
			                <asp:BoundField DataField="INEFFECTDATE" HeaderText="作废日期"  SortExpression="INEFFECTDATE"  Visible="false" />
			                <asp:BoundField DataField="TYPE" HeaderText="类型 "  SortExpression="TYPE" />
			                <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID"  Visible="false" />
			                <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE"  Visible="false" />
			                <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME"  Visible="false" />
			                <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID"  Visible="false" />
			                <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE"  Visible="false" />
			                <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间"  SortExpression="LASTMODIFYTIME"  Visible="false" />
			                <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号"  SortExpression="BUSINESSDIVISIONID"  Visible="false" />
			                <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME"  Visible="false" />
			                <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码"  SortExpression="BUSINESSDIVISIONCODE" Visible="false" />
			                <asp:TemplateField HeaderText="操作" ShowHeader="False">
                                <itemtemplate>
                                <div style="white-space: nowrap;">
                                    <asp:LinkButton ID="lbtnSelected"  runat="server" Text="选中"  OnClientClick='<%# SelectedCommand(Eval("CODE").ToString()) %>' ></asp:LinkButton>
                                </div>
				                </itemtemplate>
                            </asp:TemplateField>
                            
                            </Columns>	
                            <EmptyDataTemplate>
                                <tr class="header">
                                    <th scope="col" style="white-space: nowrap;">
                                        <a id="gvList_ctl01_PARENTCODE" >
                                            上级编码</a>
                                    </th>
                                    <th scope="col" style="white-space: nowrap;">
                                        <a id="gvList_ctl01_PARENTID" >
                                            上级名称</a>
                                    </th>
                                    <th scope="col" style="white-space: nowrap;">
                                        <a id="gvList_ctl01_CODE" >
                                            编号</a>
                                    </th>
                                    <th scope="col" style="white-space: nowrap;">
                                        <a id="gvList_ctl01_NAMECN" >
                                            中文名称</a>
                                    </th>
                                    <th scope="col" style="white-space: nowrap;">
                                        <a id="gvList_ctl01_TYPE" >
                                            类型 </a>
                                    </th>
                                    <th scope="col">
                                        操作
                                    </th>
                                </tr>
                            </EmptyDataTemplate>
                            <RowStyle CssClass="row" />
                            <AlternatingRowStyle CssClass="row2" />
                            <HeaderStyle CssClass="header" />	
                            <PagerStyle CssClass="pager" />	
                        </dp:WebGridView>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </div>
    </form>
</body>
</html>
